import request from "@/utils/request";

export function clickLike(data) {
    return request({
        url: '/uum-blog/api/v1/like/add',
        method: 'post',
        data
    })
}

export function cancelLike(data) {
    return request({
        url: '/uum-blog/api/v1/like/delete',
        method: 'post',
        data
    })
}



export function clickOrCancelLike(data) {
    return request({
        url: '/admin/like/clickOrCancelLike',
        method: 'post',
        data
    })
}

export function searchRedisCommentLike(id) {
    return request({
        url: '/web/like/getRedisCommentLike',
        method: 'get',
        params: { id }
    })
}
